﻿// -----------------------------------------------------------------------
// <copyright file="Person.cs" company="Spardo, LLC">
// Copyright (c) 2011 SPardo, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a 
// copy of this software and associated documentation files (the "Software"), 
// to deal in the Software without restriction, including without limitation 
// the rights to use, copy, modify, merge, publish, distribute, sublicense, 
// and/or sell copies of the Software, and to permit persons to whom the 
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included 
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
// DEALINGS IN THE SOFTWARE.
// </copyright>
// -----------------------------------------------------------------------

namespace DotNet37Signals.Client.Basecamp.Models
{
    using System;
    using System.Runtime.Serialization;

    [DataContract(Name = "person", Namespace = "")]
    public class Person
    {
        [DataMember(Name = "client-id", Order = 0)]
        public Int64 ClientId { get; set; }

        [DataMember(Name = "created-at", Order = 1)]
        public DateTime CreatedAt { get; set; }

        [DataMember(Name = "deleted", Order = 2)]
        public bool Deleted { get; set; }

        [DataMember(Name = "has-access-to-new-projects", Order = 3)]
        public bool HasAccessToNewProjects { get; set; }

        [DataMember(Name = "id", Order = 4)]
        public Int64 Id { get; set; }

        [DataMember(Name = "im-handle", Order = 5)]
        public string IMHandle { get; set; }

        [DataMember(Name = "im-service", Order = 6)]
        public string IMService { get; set; }

        [DataMember(Name = "phone-number-fax", Order = 7)]
        public string Fax { get; set; }

        [DataMember(Name = "phone-number-home", Order = 8)]
        public string HomePhone { get; set; }

        [DataMember(Name = "phone-number-mobile", Order = 9)]
        public string MobilePhone { get; set; }

        [DataMember(Name = "phone-number-office", Order = 10)]
        public string OfficePhone { get; set; }

        [DataMember(Name = "phone-number-office-ext", Order = 11)]
        public string OfficePhoneExt { get; set; }

        [DataMember(Name = "title", Order = 12)]
        public string Title { get; set; }

        [DataMember(Name = "token", Order = 13)]
        public string Token { get; set; }

        [DataMember(Name = "updated-at", Order = 14)]
        public DateTime UpdatedAt { get; set; }

        [DataMember(Name = "uuid", Order = 15)]
        public string UUId { get; set; }

        [DataMember(Name = "first-name", Order = 16)]
        public string FirstName { get; set; }

        [DataMember(Name = "last-name", Order = 17)]
        public string LastName { get; set; }

        [DataMember(Name = "company-id", Order = 18)]
        public Int64 CompanyId { get; set; }

        [DataMember(Name = "user-name", Order = 19)]
        public string UserName { get; set; }

        [DataMember(Name = "administrator", Order = 20)]
        public bool Administrator { get; set; }

        [DataMember(Name = "email-address", Order = 21)]
        public string EmailAddress { get; set; }

        [DataMember(Name = "avatar-url", Order = 22)]
        public string AvatarUrl { get; set; }
    }
}
